<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<style>
#admin_product {
	font: 12px/1.2 "돋움", dotum, bold;
}

th {
	background-color: #f1f1f1
}
</style>
<link rel="stylesheet" href="/jeons/css/nyroModal/nyroModal.css"
	type="text/css" media="screen" />
<script type="text/javascript"
	src="/jeons/js/jquery.nyroModal.custom.js"></script>
<script src="/jeons/js/jquery.metadata.js" type="text/javascript"></script>
<script src="/jeons/js/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript" src="/jeons/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/jeons/js/datepicker.util.js"></script>
<script type="text/javascript" src="/jeons/js/jquery.meio.mask.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		
		//체인지 할때마다 값에 알맞은 리스트를 뿌려준다
		$('#searchtype').change( function(){
			$("#search").submit();
		});
		
		
		//select 박스 값 가지고다니기
		$("#searchtype").val($("#searchtypeval").val()).attr('selected', 'true');
		
		$(".nm").nm({
			sizes:{
				minW : 400,
				maxW : 500,
				minH : 800,
				maxH : 400
			}
		});
	
		
	});
</script>
<div id="admin_product">
	<br>
	<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
		<form:form commandName="search" method="get">
			<table width="650px">
				<tr>
					<th>조건</th>
					<td><form:select path="searchtype">
							<form:option value="">선택</form:option>
							<form:options items="${code}" itemLabel="code" itemValue="value" />
						</form:select></td>
				</tr>
			</table>
		</form:form>
	</fieldset>
</div>
<br>
<input type="hidden" id="searchtypeval" value="${param.searchtype}" />
<div id="admin_product">
	<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
		<form id="frm">
			<table border="0" width="650px" height="50">
				<tr>
					<td colspan="7" bgcolor="#000000" height="1"></td>
				</tr>
				<tr>
					<th align="center">유저명</th>
					<th align="center">상품명</th>
					<th align="center">결제가격</th>
					<th align="center">수량</th>
					<th align="center">등록일</th>
				</tr>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<c:forEach items="${data}" var="item" varStatus="status">
					<tr align="center">
						<td>${item.u_id}</td>
						<td><a href="/jeons/basket/info_bd?basketno=${item.basketno}" class="nm">${item.goods_name}</a></td>
						<td>${item.goods_price}</td>
						<td>${item.went}</td>
						<td><fmt:formatDate value="${item.rg}"
								pattern="yyyy-MM-dd : hh:ss" /></td>
					</tr>
				</c:forEach>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
			</table>
		</form>
	</fieldset>
</div>